
// <copyright file="IValidator.cs" company="Subhadra Software Solutions">
//   
// </copyright>
// <summary>
//   The Validator interface.
// </summary>

namespace SubhadraSolutions.Sharp.Utils.Validation
{
    // public interface IValidator : IValidator<object>
    // {
    // }

    /// <summary>
    /// The Validator interface.
    /// </summary>
    /// <typeparam name="T">
    /// </typeparam>
    public interface IValidator<in T>
    {
        #region Public Methods and Operators

        /// <summary>
        /// The validate.
        /// </summary>
        /// <param name="obj">
        /// The obj.
        /// </param>
        /// <returns>
        /// The <see cref="ValidationResult"/>.
        /// </returns>
        ValidationResult Validate(T obj);

        #endregion Public Methods and Operators
    }
}